package elements;

import java.sql.Timestamp;

import javax.swing.ImageIcon;

public class Element {

	public static final int POST = 0; 
	public static final int PHOTO = 1;
	public static final int PERSONAL_MESSAGE = 2;
	
	public int type;
	public int elementId;
	public String name;
	public int userId;
	public Timestamp pubblicationTime;
	public ImageIcon senderImage;
	public ImageIcon photo;
	public String body;
	public String userName;

	public Element (int elementId, int type, int userId, Timestamp pubblicationTime, String name, 
			String body, ImageIcon photo, ImageIcon senderImage, String userName) {

		this.elementId = elementId;
		this.type = type;
		this.pubblicationTime = pubblicationTime;
		this.name = name;
		this.userId = userId;
		this.userName = userName;
		this.senderImage = senderImage;
		this.photo = photo;
		this.body = body;
	}

	public Element (int type, int userId, String name, String body, ImageIcon photo) {


		this.type = type;
		this.name = name;
		this.userId = userId;
		this.photo = photo;
		this.body = body;
	}


}
